/*
 * @Author: tanjunyi@doctorwork.com
 * @Date: 2020-05-13 21:39:27
 * @LastEditors: tanjunyi@doctorwork.com
 * @LastEditTime: 2020-05-13 21:40:38
 * @Description:
 */
var mobx = require('mobx');
const { observable, autorun, computed } = mobx;

const number = observable.box(10);
const plus = computed(() => number.get() > 0);

autorun(() => {
	console.log(plus.get());
});

number.set(-19);
number.set(-1);
number.set(1);
